$(function(){
	initListener();
});


// 导航
function initListener(){
	
	$(".flex").off("click").on("click",function(){
		var $this = $(this);
		$this.toggleClass("plus");
		$this.parent().next().slideToggle(100);
	});

	$(".recruit-title").off("click").on("click",function(){
		var $this = $(this);
		var $thisEm = $this.find("em");
		if($thisEm.hasClass("arrow-up")){
			return;
		}
		if($thisEm.hasClass("arrow-down")){
			$thisEm.removeClass("arrow-down").addClass("arrow-up");
		}
		$this.next().slideDown(200);
		var $siblings =$this.parent().siblings();
		$siblings.find(".recruit-content").slideUp(200);
		$siblings.find("em").removeClass("arrow-down").removeClass("arrow-up").addClass("arrow-down");

	});
}